
<!doctype html>
<html>
<head>
	<meta charset="utf-8" />
	<link rel="stylesheet" type="text/css" href="/css/css.css" />
	<script src="/js/public.js"></script>
	<script src="/js/jquery.min.js"></script>
	<title>缴费查询</title>
	<style type="text/css">
	</style>
</head>
<body>
	<section class="historyTitle">
		<p class="revert" onclick="window.location.href='/index';"><img src="/img/leftArrow.png" />返回</p>
		缴费账单
	</section>
	<section class="historyList">
		@foreach($charge_records as $charge_record)
		<section class="historyItem">
			<p class="dateTime">
				<span>{{ $charge_record->created_at->year }}</span>年
				<span>{{ $charge_record->created_at->month }}</span>月
				<span>{{ $charge_record->created_at->day }}</span>日
				<span>
				@if($charge_record->created_at->hour < 10)
					0{{ $charge_record->created_at->hour }}</span>:
				@else
					{{ $charge_record->created_at->hour }}</span>:
				@endif
				<span>
				@if($charge_record->created_at->minute < 10)
					0{{ $charge_record->created_at->minute }}</span>
				@else
					{{ $charge_record->created_at->minute }}</span>
				@endif
				<span class="operateCharacter">{{ $charge_record->status_description }}
				@if($charge_record->status == 4)
				  @if($charge_record->recharge_mode == 2)
				  :{{ $charge_record->discharge_flow }}L
				  @else
				  :{{ $charge_record->discharge_time }}天
				  @endif
				@endif
				</span>
			</p>
			<section class="payNum">
				@if($charge_record->recharge_mode == 2)
				<p class="payManey">
					<span>缴费：</span>
					<span>{{ $charge_record->money or 0 }}</span>元
				</p>
				<p class="payWater">
					<span>购买流量</span>
					<span>{{ $charge_record->flow }}</span>L
				</p>
				@else
				<p class="payManey" style="visibility:hidden; ">
					<span>缴费：</span>
					<span>{{ $charge_record->money or 0 }}</span>元
				</p>
				<p class="payWater">
					<span>购买天数</span>
					<span>{{ $charge_record->days or 0 }}</span>天
				</p>
				@endif
			</section>
		</section>
		@endforeach
	</section>
</body>
</html>
